package com.wiloon.java.network.network.nettyhttpserver.monitor;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by Roy on 2015/12/6;
 */
public class ResponseCounter {
    public static AtomicInteger responseTotal = new AtomicInteger();

    public static long responseTime;

    public static void count() {
        responseTotal.incrementAndGet();
        responseTime = System.currentTimeMillis();
    }

    public static int get() {
        return responseTotal.get();
    }
}
